package com.fjnldx.mes.mapper.energy;


import com.fjnldx.mes.domain.domainReq.TimeSlotFour;
import com.fjnldx.mes.domain.domainReq.TimeSlotThree;
import com.fjnldx.mes.domain.domainReq.TimeSlotTwo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface EnergyNewMapper {

    /**
     * 查询各工序电耗汇总
     *
     * @return
     */
    List<Map> querySummaryOfPowerConsumptionOfProcess(LocalDate startTime, LocalDate endTime, String cj, String bc);

    /**
     * 查询电耗汇总-细纱-自络圆环
     *
     * @return
     */
    List<Map> querySummaryOfRingXsAndLt(LocalDate startTime, LocalDate endTime, String cj, String bc);

    /**
     * 工序电耗柱状图和表格
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumption(TimeSlotTwo data);

    /**
     * 工序电耗折线图-基准数据结构-工序电耗折线图-遍历查询电耗汇总
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumptionLineChart(TimeSlotTwo data);

    //List<Map> queryProcessPowerConsumptionLineChartDay(TimeSlotTwo data);
    //
    //Map queryProcessPowerConsumptionLineChartImpEpSum(String gongxu, String startTime, String endTime);

    /**
     * 品种电耗折线图-基准数据结构-工序电耗折线图-遍历查询电耗汇总
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumptionLineChartPz(TimeSlotThree data);

    //List<Map> queryProcessPowerConsumptionLineChartDayPz(TimeSlotThree data);
    //
    //Map queryProcessPowerConsumptionLineChartImpEpSumPz(String gongxu, String pz, String startTime, String endTime);

    /**
     * 品种电耗柱状图和表格
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumptionPz(TimeSlotThree data);

    /**
     * 机台电耗明细柱状图和表格
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumptionDetail(TimeSlotFour data);

    /**
     * 机台电耗明细折线图
     *
     * @param data
     * @return
     */
    List<Map> queryProcessPowerConsumptionDetailLineChart(TimeSlotFour data);

    List<Map> queryProcessPowerConsumptionDetailLineChartDay(TimeSlotFour data);

    Map queryProcessPowerConsumptionLineChartImpEpSumDetail(String gongxu, String pz, String startTime, String endTime);
}

